<extend name="Public/base" />


<block name="body">
    
    <div class="main-title">
        <h2> {:isset($info['id'])?'编辑':'新增'}广告位</h2>
    </div>
    <form action="{:U()}" method="post" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">广告位名称<span class="check-tips">（用于后台显示的配置标题）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="name" value="{$info.name|default=''}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">广告位宽度<span class="check-tips">（用于分组显示的顺序）</span></label>
            <div class="controls">
                <input type="text" class="text input-small" name="width" value="{$info.width}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">广告位高度<span class="check-tips">（U函数解析的URL或者外链）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="height" value="{$info.height}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">描述<span class="check-tips">（所属的上级菜单）</span></label>
            <div class="controls">
                <textarea class="span10" name="description">{$info.description}</textarea>
            </div>
        </div>
        <div class="form-item">
            <input type="hidden" name="id" value="{$info.id|default=''}">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>